Skip to content

Commit b15e1cd

Browse files
authored
fix autorefresh for fastCommitMode (#863)
1 parent 50e3ac5 commit b15e1cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cs/src/core/FasterLog/FasterLog.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ private unsafe bool TryEnqueueCommitRecord(ref FasterLogRecoveryInfo info)
20372037
fixed (byte* bp = entryBody)
20382038
Buffer.MemoryCopy(bp, (void*)(headerSize + physicalAddress), entryBody.Length, entryBody.Length);
20392039
SetCommitRecordHeader(entryBody.Length, (byte*)physicalAddress);
2040+
if (AutoRefreshSafeTailAddress) DoAutoRefreshSafeTailAddress();
20402041
epoch.Suspend();
20412042
// Return the commit tail
20422043
return true;

0 commit comments

Comments
 (0)