Skip to content

Commit

Permalink
Remove unused argument from EPStore::persistVBState
Browse files Browse the repository at this point in the history
The priority argument is not used.

Change-Id: I679b5bf376c8c97e31cde80f97efbfa74c01568d
Reviewed-on: http://review.couchbase.org/63223
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
  • Loading branch information
daverigby committed May 4, 2016
1 parent 25445e7 commit 565e406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ep.cc
Expand Up @@ -1322,8 +1322,7 @@ void EventuallyPersistentStore::snapshotVBuckets(const Priority &priority,
}
}

bool EventuallyPersistentStore::persistVBState(const Priority &priority,
uint16_t vbid) {
bool EventuallyPersistentStore::persistVBState(uint16_t vbid) {
schedule_vbstate_persist[vbid] = false;

RCPtr<VBucket> vb = getVBucket(vbid);
Expand Down
2 changes: 1 addition & 1 deletion src/ep.h
Expand Up @@ -739,7 +739,7 @@ class EventuallyPersistentStore {
/**
* Persist a vbucket's state.
*/
bool persistVBState(const Priority &priority, uint16_t vbid);
bool persistVBState(uint16_t vbid);

const VBucketMap &getVBuckets() {
return vbMap;
Expand Down
2 changes: 1 addition & 1 deletion src/tasks.cc
Expand Up @@ -85,7 +85,7 @@ bool DaemonVBSnapshotTask::run() {
}

bool VBStatePersistTask::run() {
return engine->getEpStore()->persistVBState(priority, vbid);
return engine->getEpStore()->persistVBState(vbid);
}

bool VBDeleteTask::run() {
Expand Down

0 comments on commit 565e406

Please sign in to comment.