@@ -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,8 @@ 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 =
4983+ test.cache .armAlarmHandler (10 * kj::SECONDS + kj::UNIX_EPOCH, false , " " , nullptr );
49834984 KJ_ASSERT (armResult.is <ActorCache::CancelAlarmHandler>());
49844985 auto cancelResult = kj::mv (armResult.get <ActorCache::CancelAlarmHandler>());
49854986 KJ_ASSERT (cancelResult.waitBeforeCancel .poll (ws));
@@ -4997,7 +4998,7 @@ KJ_TEST("ActorCache alarm get/put") {
49974998 {
49984999 // Test that alarm handler handle clears alarm when dropped with no writes
49995000 {
5000- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5001+ auto armResult = test.cache .armAlarmHandler (oneMs, false , " " , nullptr );
50015002 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50025003 }
50035004 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5010,7 +5011,7 @@ KJ_TEST("ActorCache alarm get/put") {
50105011
50115012 // Test that alarm handler handle does not clear alarm when dropped with writes
50125013 {
5013- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5014+ auto armResult = test.cache .armAlarmHandler (oneMs, false , " " , nullptr );
50145015 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50155016 test.setAlarm (twoMs);
50165017 }
@@ -5024,7 +5025,7 @@ KJ_TEST("ActorCache alarm get/put") {
50245025
50255026 // Test that alarm handler handle does not cache delete when it fails
50265027 {
5027- auto armResult = test.cache .armAlarmHandler (oneMs, false );
5028+ auto armResult = test.cache .armAlarmHandler (oneMs, false , " " , nullptr );
50285029 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50295030 }
50305031 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5036,7 +5037,7 @@ KJ_TEST("ActorCache alarm get/put") {
50365037 {
50375038 // Test that alarm handler handle does not cache alarm delete when noCache == true
50385039 {
5039- auto armResult = test.cache .armAlarmHandler (twoMs, true );
5040+ auto armResult = test.cache .armAlarmHandler (twoMs, true , " " , nullptr );
50405041 KJ_ASSERT (armResult.is <ActorCache::RunAlarmHandler>());
50415042 }
50425043 mockStorage->expectCall (" deleteAlarm" , ws)
@@ -5090,7 +5091,7 @@ KJ_TEST("ActorCache alarm delete when flush fails") {
50905091 // we want to test that even if a flush is retried
50915092 // that the post-delete actions for a checked delete happen.
50925093 {
5093- auto handle = test.cache .armAlarmHandler (oneMs, false );
5094+ auto handle = test.cache .armAlarmHandler (oneMs, false , " " , nullptr );
50945095
50955096 auto time = expectCached (test.getAlarm ());
50965097 KJ_ASSERT (time == kj::none);
@@ -5283,7 +5284,7 @@ KJ_TEST("ActorCache can wait for flush") {
52835284
52845285 {
52855286 // Join in on a scheduled deleteAll.
5286- test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = false });
5287+ test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = false }, nullptr );
52875288
52885289 verify (
52895290 [&]() {
@@ -5301,7 +5302,7 @@ KJ_TEST("ActorCache can wait for flush") {
53015302
53025303 {
53035304 // Join in on a scheduled deleteAll with allowUnconfirmed.
5304- test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = true });
5305+ test.cache .deleteAll (ActorCacheWriteOptions{.allowUnconfirmed = true }, nullptr );
53055306
53065307 verify (
53075308 [&]() {
0 commit comments