@@ -179,22 +179,22 @@ struct ActorCacheConvenienceWrappers {
179179 }
180180
181181 auto put (kj::StringPtr key, kj::StringPtr value, ActorCache::WriteOptions options = {}) {
182- return target.put (kj::str (key), kj::heapArray (value.asBytes ()), options);
182+ return target.put (kj::str (key), kj::heapArray (value.asBytes ()), options, nullptr );
183183 }
184184 auto put (kj::ArrayPtr<const KeyValuePtr> kvs, ActorCache::WriteOptions options = {}) {
185185 return target.put (KJ_MAP (kv, kvs) {
186186 return ActorCache::KeyValuePair{kj::str (kv.key ), kj::heapArray (kv.value .asBytes ())};
187- }, options);
187+ }, options, nullptr );
188188 }
189189 auto setAlarm (kj::Maybe<kj::Date> newTime, ActorCache::WriteOptions options = {}) {
190- return target.setAlarm (newTime, options);
190+ return target.setAlarm (newTime, options, nullptr );
191191 }
192192
193193 auto delete_ (kj::StringPtr key, ActorCache::WriteOptions options = {}) {
194- return target.delete_ (kj::str (key), options);
194+ return target.delete_ (kj::str (key), options, nullptr );
195195 }
196196 auto delete_ (kj::ArrayPtr<const kj::StringPtr> keys, ActorCache::WriteOptions options = {}) {
197- return target.delete_ (KJ_MAP (k, keys) { return kj::str (k); }, options);
197+ return target.delete_ (KJ_MAP (k, keys) { return kj::str (k); }, options, nullptr );
198198 }
199199
200200 private:
@@ -700,7 +700,7 @@ KJ_TEST("ActorCache batching due to max storage RPC words") {
700700 for (int i = 0 ; i < 128 ; ++i) {
701701 test.cache .put (kj::str (i),
702702 kj::Array<const byte>(bigVal.begin (), bigVal.size (), kj::NullArrayDisposer::instance),
703- ActorCache::WriteOptions ());
703+ ActorCache::WriteOptions (), nullptr );
704704 }
705705
706706 auto mockTxn = mockStorage->expectCall (" txn" , ws).returnMock (" transaction" );
@@ -736,7 +736,7 @@ KJ_TEST("ActorCache deleteAll()") {
736736 test.put (" baz" , " 789" ); // overwrites a counted delete
737737 test.delete_ (" garply" ); // uncounted delete
738738
739- auto deleteAll = test.cache .deleteAll ({});
739+ auto deleteAll = test.cache .deleteAll ({}, nullptr );
740740
741741 // Post-deleteAll writes.
742742 test.put (" grault" , " 12345" );
@@ -819,7 +819,7 @@ KJ_TEST("ActorCache deleteAll() during transaction commit") {
819819
820820 // Issue a put and a deleteAll() here!
821821 test.put (" bar" , " 456" );
822- test.cache .deleteAll ({});
822+ test.cache .deleteAll ({}, nullptr );
823823
824824 kj::mv (inProgressFlush).thenReturn (CAPNP ());
825825 }
@@ -861,7 +861,7 @@ KJ_TEST("ActorCache deleteAll() again when previous one isn't done yet") {
861861 test.put (" baz" , " 789" ); // overwrites a counted delete
862862 test.delete_ (" garply" ); // uncounted delete
863863
864- auto deleteAllA = test.cache .deleteAll ({});
864+ auto deleteAllA = test.cache .deleteAll ({}, nullptr );
865865
866866 // Post-deleteAll writes.
867867 test.put (" grault" , " 12345" );
@@ -884,7 +884,7 @@ KJ_TEST("ActorCache deleteAll() again when previous one isn't done yet") {
884884 }
885885
886886 // Do another deleteAll() before the first one is done.
887- auto deleteAllB = test.cache .deleteAll ({});
887+ auto deleteAllB = test.cache .deleteAll ({}, nullptr );
888888
889889 // And a write after that.
890890 test.put (" fred" , " 2323" );
@@ -4979,7 +4979,7 @@ KJ_TEST("ActorCache alarm get/put") {
49794979
49804980 {
49814981 // we have a cached time == nullptr, so we should not attempt to run an alarm
4982- auto armResult = test.cache .armAlarmHandler (10 * kj::SECONDS + kj::UNIX_EPOCH, false );
4982+ auto armResult = test.cache .armAlarmHandler (10 * kj::SECONDS + kj::UNIX_EPOCH, nullptr );
49834983 KJ_ASSERT (armResult.is <ActorCache::CancelAlarmHandler>());
49844984 auto cancelResult = kj::mv (armResult.get <ActorCache::CancelAlarmHandler>());
49854985 KJ_ASSERT (cancelResult.waitBeforeCancel .poll (ws));
@@ -4997,7 +4997,7 @@ KJ_TEST("ActorCache alarm get/put") {
49974997 {
49984998 // Test that alarm handler handle clears alarm when dropped with no writes
49994999 {
5000- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5000+ auto armResult = test.cache .armAlarmHandler (oneMs, nullptr );
50015001 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50025002 }
50035003 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5010,7 +5010,7 @@ KJ_TEST("ActorCache alarm get/put") {
50105010
50115011 // Test that alarm handler handle does not clear alarm when dropped with writes
50125012 {
5013- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5013+ auto armResult = test.cache .armAlarmHandler (oneMs, nullptr );
50145014 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50155015 test.setAlarm (twoMs);
50165016 }
@@ -5024,7 +5024,7 @@ KJ_TEST("ActorCache alarm get/put") {
50245024
50255025 // Test that alarm handler handle does not cache delete when it fails
50265026 {
5027- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5027+ auto armResult = test.cache .armAlarmHandler (oneMs, nullptr );
50285028 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50295029 }
50305030 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5036,7 +5036,7 @@ KJ_TEST("ActorCache alarm get/put") {
50365036 {
50375037 // Test that alarm handler handle does not cache alarm delete when noCache == true
50385038 {
5039- auto armResult = test.cache .armAlarmHandler (twoMs, true );
5039+ auto armResult = test.cache .armAlarmHandler (twoMs, nullptr , true );
50405040 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50415041 }
50425042 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5090,7 +5090,7 @@ KJ_TEST("ActorCache alarm delete when flush fails") {
50905090 // we want to test that even if a flush is retried
50915091 // that the post-delete actions for a checked delete happen.
50925092 {
5093- auto handle = test.cache .armAlarmHandler (oneMs, false );
5093+ auto handle = test.cache .armAlarmHandler (oneMs, nullptr );
50945094
50955095 auto time = expectCached (test.getAlarm ());
50965096 KJ_ASSERT (time == kj::none);
@@ -5283,7 +5283,7 @@ KJ_TEST("ActorCache can wait for flush") {
52835283
52845284 {
52855285 // Join in on a scheduled deleteAll.
5286- test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = false });
5286+ test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = false }, nullptr );
52875287
52885288 verify (
52895289 [&]() {
@@ -5301,7 +5301,7 @@ KJ_TEST("ActorCache can wait for flush") {
53015301
53025302 {
53035303 // Join in on a scheduled deleteAll with allowUnconfirmed.
5304- test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = true });
5304+ test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = true }, nullptr );
53055305
53065306 verify (
53075307 [&]() {
0 commit comments