summaryrefslogtreecommitdiffstats
path: root/searchcorespi
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-06-10 13:42:16 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-06-10 15:57:21 +0200
commitec1c7434958d1a0f2f4854477627ae864354b313 (patch)
tree36c38a2a446b411a5be5f27e261024dbfea1d546 /searchcorespi
parent3d1b445b10f70771cf7a4bce1ba2d285c553f930 (diff)
Adjust prepare restart strategy for differentiated replay operation costs.
Diffstat (limited to 'searchcorespi')
-rw-r--r--searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h b/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h
index 03d9ba8d55c..10ed19a7244 100644
--- a/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h
+++ b/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h
@@ -137,6 +137,11 @@ public:
virtual uint64_t getApproxBytesToWriteToDisk() const = 0;
/**
+ * Return cost of replaying a feed operation relative to cost of reading a feed operation from tls.
+ */
+ virtual double get_replay_operation_cost() const { return 0.0; }
+
+ /**
* Returns the last serial number for the transaction applied to
* target before it was flushed to disk. The transaction log can
* not be pruned beyond this.