MCPcopy Create free account
hub / github.com/wal-e/wal-e / future_segment_stream

Method future_segment_stream

wal_e/worker/pg/wal_transfer.py:89–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 yield WalSegment(seg_path, explicit=False)
88
89 def future_segment_stream(self):
90 sn = self.segment_number
91
92 if sn is None:
93 # Can't project from this 'segment'; it's probably
94 # actually a .history file or something like that.
95 return
96
97 while True:
98 sn = sn.next_larger()
99 segment = self.__class__(
100 path.join(path.dirname(self.path),
101 self.tli + sn.log + sn.seg))
102 yield segment
103
104
105class WalTransferGroup(object):

Callers 3

start_prefetchesFunction · 0.80
test_cleanup_runningFunction · 0.80
test_cleanup_promotedFunction · 0.80

Calls 2

next_largerMethod · 0.80
joinMethod · 0.45

Tested by 2

test_cleanup_runningFunction · 0.64
test_cleanup_promotedFunction · 0.64