mirror of https://github.com/ledisdb/ledisdb.git
add warning for bin log
This commit is contained in:
parent
0a72481eb0
commit
ee59af0062
|
@ -42,6 +42,7 @@ func Open(cfg *config.Config) (*Ledis, error) {
|
||||||
l.ldb = ldb
|
l.ldb = ldb
|
||||||
|
|
||||||
if cfg.BinLog.MaxFileNum > 0 && cfg.BinLog.MaxFileSize > 0 {
|
if cfg.BinLog.MaxFileNum > 0 && cfg.BinLog.MaxFileSize > 0 {
|
||||||
|
println("binlog will be refactored later, use your own risk!!!")
|
||||||
l.binlog, err = NewBinLog(cfg)
|
l.binlog, err = NewBinLog(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue