You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust error for already locked db and prevent level db lock on malformed connstr (#18923)
This PR adjusts the error returned when there is failure to lock the level db, and
permits a connections to the same leveldb where there is a different connection string.
Reference #18921
Reference #18917
Signed-off-by: Andrew Thornton <[email protected]>
// if there is already a connection to this leveldb reuse that
76
+
// NOTE: if there differing options then only the first leveldb connection will be used
77
+
db, ok=m.LevelDBConnections[dataDir]
78
+
ifok {
79
+
db.count++
80
+
log.Warn("Duplicate connnection to level db: %s with different connection strings. Initial connection: %s. This connection: %s", dataDir, db.name[0], connection)
0 commit comments