We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd4782 commit da65c6dCopy full SHA for da65c6d
src/couch-kvstore/couch-kvstore.h
@@ -20,6 +20,7 @@
20
21
#include "config.h"
22
#include "libcouchstore/couch_db.h"
23
+#include <relaxed_atomic.h>
24
25
#include <map>
26
#include <string>
@@ -638,7 +639,12 @@ class CouchKVStore : public KVStore
638
639
EPStats &epStats;
640
Configuration &configuration;
641
const std::string dbname;
- std::vector<uint64_t>dbFileRevMap;
642
+
643
+ // Map of the fileRev for each vBucket. Using RelaxedAtomic so
644
+ // stats gathering (doDcpVbTakeoverStats) can get a snapshot
645
+ // without having to lock.
646
+ std::vector<Couchbase::RelaxedAtomic<uint64_t> > dbFileRevMap;
647
648
uint16_t numDbFiles;
649
std::vector<CouchRequest *> pendingReqsQ;
650
bool intransaction;
0 commit comments