|
20 | 20 |
|
21 | 21 | #include "config.h" |
22 | 22 | #include "libcouchstore/couch_db.h" |
23 | | -#include <relaxed_atomic.h> |
24 | 23 |
|
25 | 24 | #include <map> |
26 | 25 | #include <string> |
@@ -528,26 +527,19 @@ class CouchKVStore : public KVStore |
528 | 527 | void removeCompactFile(const std::string &filename); |
529 | 528 |
|
530 | 529 | const std::string dbname; |
531 | | - |
532 | | - // Map of the fileRev for each vBucket. Using RelaxedAtomic so |
533 | | - // stats gathering (doDcpVbTakeoverStats) can get a snapshot |
534 | | - // without having to lock. |
535 | | - std::vector<Couchbase::RelaxedAtomic<uint64_t>> dbFileRevMap; |
536 | | - |
| 530 | + std::vector<uint64_t>dbFileRevMap; |
537 | 531 | uint16_t numDbFiles; |
538 | 532 | std::vector<CouchRequest *> pendingReqsQ; |
539 | 533 | bool intransaction; |
540 | 534 |
|
541 | 535 | /* all stats */ |
542 | 536 | CouchKVStoreStats st; |
543 | 537 | couch_file_ops statCollectingFileOps; |
544 | | - /* deleted docs in each file, indexed by vBucket. RelaxedAtomic |
545 | | - to allow stats access witout lock */ |
546 | | - std::vector<Couchbase::RelaxedAtomic<size_t>> cachedDeleteCount; |
| 538 | + /* deleted docs in each file, indexed by vBucket */ |
| 539 | + std::vector<size_t> cachedDeleteCount; |
547 | 540 |
|
548 | | - /* non-deleted docs in each file, indexed by vBucket. |
549 | | - RelaxedAtomic to allow stats access witout lock. */ |
550 | | - std::vector<Couchbase::RelaxedAtomic<size_t>> cachedDocCount; |
| 541 | + /* non-deleted docs in each file, indexed by vBucket */ |
| 542 | + std::vector<size_t> cachedDocCount; |
551 | 543 |
|
552 | 544 | /* pending file deletions */ |
553 | 545 | AtomicQueue<std::string> pendingFileDeletions; |
|
0 commit comments