Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pump_bfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,11 @@ def provide_batch(self):

if self.skip(key, vbucket_id):
continue
msg = (row[0], row[1], row[2], row[3], row[4],
if self.opts.extra.get('no_expiry', 0):
exp = 0
else:
exp = row[4]
msg = (row[0], row[1], row[2], row[3], exp,
int(row[5]), # CAS as 64-bit integer not string.
row[6], # revid as 64-bit integer too
row[7])
Expand Down
1 change: 1 addition & 0 deletions pump_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def opt_extra_defaults(self):
"uncompress": (0, "For value 1, restore data in uncompressed mode"),
"backoff_cap": (10, "Max backoff time during rebalance period"),
"flow_control": (1, "For value 0, disable flow control to improve throughput"),
"no_expiry": (0, "For value 1, at restore time, ignore ttl stored in backup so that a full snapshot can be restored"),
}

def find_handlers(self, opts, source, sink):
Expand Down