Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CreateColumnFamily retrun nullptr #88

Open
liyou54 opened this issue Jul 20, 2024 · 2 comments
Open

Create CreateColumnFamily retrun nullptr #88

liyou54 opened this issue Jul 20, 2024 · 2 comments

Comments

@liyou54
Copy link

liyou54 commented Jul 20, 2024

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
Copy link
Author

liyou54 commented Jul 20, 2024

image

@mhorse8
Copy link

mhorse8 commented Sep 2, 2024

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

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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants