mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 07:56:52 +08:00
rewriteAOF method in echovault.go now handles the rewrite synchronously. Removed newline character in Write method of append store. Added test case for REWRITEAOF command and restore from AOF.
This commit is contained in:
@@ -179,7 +179,7 @@ func (engine *Engine) RewriteLog() error {
|
||||
engine.startRewriteFunc()
|
||||
defer engine.finishRewriteFunc()
|
||||
|
||||
// Create AOF preamble
|
||||
// Create AOF preamble.
|
||||
if err := engine.preambleStore.CreatePreamble(); err != nil {
|
||||
return fmt.Errorf("rewrite log -> create preamble error: %+v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user