Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental method to create DO replicas #2824

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MellowYarker
Copy link
Contributor

No description provided.

@@ -3362,4 +3362,8 @@ kj::Promise<void> ActorCacheInterface::waitForBookmark(kj::StringPtr bookmark) {
Error, "This Durable Object's storage back-end does not implement point-in-time recovery.");
}

void ActorCacheInterface::ensureReplicas() {
JSG_FAIL_REQUIRE(Error, "This Durable Object's storage back-end does not support replication.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can you add a comment along the lines of this being intended to be implemented internally

@@ -239,6 +239,8 @@ class ActorCacheInterface: public ActorCacheOps {
virtual kj::Promise<kj::String> getBookmarkForTime(kj::Date timestamp);
virtual kj::Promise<kj::String> onNextSessionRestoreBookmark(kj::StringPtr bookmark);
virtual kj::Promise<void> waitForBookmark(kj::StringPtr bookmark);

virtual void ensureReplicas();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that it's just a throw, consider just inlining the implementation with the throw here. Just keeps things a bit simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants