commit | 68fb65188a5469ec277f3ab9165f3c79e7e2d681 | [log] [tgz] |
---|---|---|
author | Suryandaru Triandana <syndtr@gmail.com> | Mon Jan 25 07:09:56 2016 +0700 |
committer | Suryandaru Triandana <syndtr@gmail.com> | Mon Jan 25 07:09:56 2016 +0700 |
tree | c6b8c3c5c7410a2a2fc0853e258d01fac5e91f9a | |
parent | 5acacf6e72d3aeaf26dd3d3f163c635d3ef1e6e6 [diff] |
storage: fs: don't rotate LOG file on open
diff --git a/leveldb/storage/file_storage.go b/leveldb/storage/file_storage.go index 76d0688..3650929 100644 --- a/leveldb/storage/file_storage.go +++ b/leveldb/storage/file_storage.go
@@ -79,7 +79,6 @@ } }() - rename(filepath.Join(path, "LOG"), filepath.Join(path, "LOG.old")) logw, err := os.OpenFile(filepath.Join(path, "LOG"), os.O_WRONLY|os.O_CREATE, 0644) if err != nil { return nil, err