From f9f96ba5c9e0b687480b98ddb138defe93ce263e Mon Sep 17 00:00:00 2001 From: Nick Tessier <22119573+nick4598@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:20:33 -0500 Subject: [PATCH] Add note to checkforChanges call to explain what happens with existing transactions (#7407) --- ...echeckForChangesDocumentation_2024-11-20-15-43.json | 10 ++++++++++ core/backend/src/CloudSqlite.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 common/changes/@itwin/core-backend/nick-updatecheckForChangesDocumentation_2024-11-20-15-43.json diff --git a/common/changes/@itwin/core-backend/nick-updatecheckForChangesDocumentation_2024-11-20-15-43.json b/common/changes/@itwin/core-backend/nick-updatecheckForChangesDocumentation_2024-11-20-15-43.json new file mode 100644 index 000000000000..99b35bb89b62 --- /dev/null +++ b/common/changes/@itwin/core-backend/nick-updatecheckForChangesDocumentation_2024-11-20-15-43.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/core-backend", + "comment": "", + "type": "none" + } + ], + "packageName": "@itwin/core-backend" +} \ No newline at end of file diff --git a/core/backend/src/CloudSqlite.ts b/core/backend/src/CloudSqlite.ts index 24ad84a250ca..4b3d0ee66b4c 100644 --- a/core/backend/src/CloudSqlite.ts +++ b/core/backend/src/CloudSqlite.ts @@ -501,7 +501,8 @@ export namespace CloudSqlite { * * Notes: * - no changes made by other processes are visible to this CloudContainer unless/until this method is called. - * - note this is automatically called whenever the write lock is obtained to ensure all changes are against the latest version. + * - this is automatically called whenever the write lock is obtained to ensure all changes are against the latest version. + * - any existing transactions on databases within the container will continue to use the old version of the manifest and therefore see no new changes pulled in. */ checkForChanges(): void;