Skip to content

Commit 633bccc

Browse files
committed
Fix compact.
1 parent 0677b3e commit 633bccc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

couchdb/tools/replicate.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ def main():
120120
print '%.1fs' % (time.time() - start)
121121
sys.stdout.flush()
122122

123-
if not options.compact:
124-
return
125-
126-
for dbname in dbnames:
127-
target_server[dbname].compact()
123+
if options.compact:
124+
for (sdb, tdb) in databases:
125+
print 'compact', tdb
126+
target[tdb].compact()
128127

129128
if __name__ == '__main__':
130129
main()

0 commit comments

Comments
 (0)