Skip to content

Commit

Permalink
reset_auto_compaction() is now public
Browse files Browse the repository at this point in the history
Change-Id: Ie804d44b3a20c97d38f68b62949e3e87a4b40593
Reviewed-on: http://review.couchbase.org/10234
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
  • Loading branch information
steveyen authored and farshidce committed Oct 20, 2011
1 parent ce165bd commit 1d5383d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/membase/api/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def check_compaction_status(self, bucket):
return True, i
return False, i

def _reset_auto_compaction(self):
def reset_auto_compaction(self):
api = self.baseUrl + "controller/setAutoCompaction"
params = urllib.urlencode({"just_validate":"1",
"parallelDBAndViewCompaction":"false",
Expand Down
4 changes: 2 additions & 2 deletions pytests/autocompaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _database_fragmentation(self, percent_threshold):
rest = RestConnection(serverInfo)
remote_client = RemoteMachineShellConnection(serverInfo)

rest._reset_auto_compaction()
rest.reset_auto_compaction()
parallelDBAndView = "false"
output = rest.set_autoCompaction(parallelDBAndView, percent_threshold, 100)
if not output and percent_threshold < MIN_COMPACTION_THRESHOLD:
Expand Down Expand Up @@ -106,5 +106,5 @@ def _viewFragmentationThreshold(self):
for serverInfo in self.servers:
self.log.info(serverInfo)
rest = RestConnection(serverInfo)
rest._reset_auto_compaction()
rest.reset_auto_compaction()
parallelDBAndView = "false"

0 comments on commit 1d5383d

Please sign in to comment.