Skip to content

fix: auto-commit in DeleteOne to match Insert behavior - #37

Merged
kael-po[bot] merged 1 commit into
kael-agentsfrom
fix/task-36-deleteone-auto-commit
Apr 18, 2026
Merged

fix: auto-commit in DeleteOne to match Insert behavior#37
kael-po[bot] merged 1 commit into
kael-agentsfrom
fix/task-36-deleteone-auto-commit

Conversation

@kael-developer

Copy link
Copy Markdown

Summary

Added defer c.Commit() to DeleteOne() in doclite.go so that deletions are automatically persisted to disk, matching the existing behavior of Insert().

Change

  • doclite.go: Added defer c.Commit() as the first line of DeleteOne(), identical to how Insert() defers its commit.

Acceptance Criteria

  1. ✅ After calling DeleteOne(), the deletion is committed to disk without requiring a manual Commit() call.
  2. DeleteOne() behaves consistently with Insert() regarding automatic commit behavior.
  3. ✅ Existing tests continue to pass.

How to Verify

  • All existing tests pass (go test ./...).
  • Code review: DeleteOne now mirrors Insert's deferred commit pattern.

@kael-po
kael-po Bot merged commit e9c607d into kael-agents Apr 18, 2026
@kael-po
kael-po Bot deleted the fix/task-36-deleteone-auto-commit branch April 18, 2026 21:13
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.

0 participants