warrenfalk / rocksdb-sharp

.net bindings for the rocksdb by facebook
Other
208 stars 64 forks source link

Create CreateColumnFamily retrun nullptr #88

Open liyou54 opened 3 months ago

liyou54 commented 3 months ago

when i create a ColumnFamily after open a database it will be happened
private ColumnFamilyHandle CreateColumnFamily(RocksDb db, string familyName, uint bloomBit = 0) { if (_columnFamilyHandles.TryGetValue(familyName, out var family)) return family; var options = new ColumnFamilyOptions(); var columnFamily = db.CreateColumnFamily(options, familyName); _columnFamilyHandles.Add(familyName, columnFamily); return columnFamily; } image

liyou54 commented 3 months ago

image

mhorse8 commented 1 month ago

{ using var db = RocksDb.Open(new DbOptions() .SetCreateIfMissing(true), dbPath);

db.CreateColumnFamily(new ColumnFamilyOptions(), "test");//throw null exception

}