Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 10b5cc2

Browse files
authored
set grainState.ETag = null, while clear state and delete state on clear (#42)
1 parent efb1b9b commit 10b5cc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Orleans.Persistence.CosmosDB/CosmosDBGrainStorage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ public async Task ClearStateAsync(string grainType, GrainReference grainReferenc
257257

258258
await ExecuteWithRetries(() => this._container.DeleteItemAsync<GrainStateEntity>(
259259
id, pk, requestOptions));
260+
261+
grainState.ETag = null;
260262
}
261263
else
262264
{

0 commit comments

Comments
 (0)