File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3134,7 +3134,7 @@ VBCBAdaptor::VBCBAdaptor(EventuallyPersistentStore *s,
31343134
31353135bool VBCBAdaptor::run (void ) {
31363136 if (!vbList.empty ()) {
3137- currentvb = vbList.front ();
3137+ currentvb. store ( vbList.front () );
31383138 RCPtr<VBucket> vb = store->vbMap .getBucket (currentvb);
31393139 if (vb) {
31403140 if (visitor->pauseVisitor ()) {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class VBCBAdaptor : public GlobalTask {
122122
123123 std::string getDescription () {
124124 std::stringstream rv;
125- rv << label << " on vb " << currentvb;
125+ rv << label << " on vb " << currentvb. load () ;
126126 return rv.str ();
127127 }
128128
@@ -134,7 +134,7 @@ class VBCBAdaptor : public GlobalTask {
134134 shared_ptr<VBucketVisitor> visitor;
135135 const char *label;
136136 double sleepTime;
137- uint16_t currentvb;
137+ AtomicValue< uint16_t > currentvb;
138138
139139 DISALLOW_COPY_AND_ASSIGN (VBCBAdaptor);
140140};
You can’t perform that action at this time.
0 commit comments