Restore columnId without getting it first
This commit is contained in:
parent
83f1741fa4
commit
0983eb6d29
@ -63,15 +63,7 @@ public class Migrate {
|
||||
System.out.println("parsed documents");
|
||||
var protocol = new TBinaryProtocol(transport);
|
||||
var client = new RocksDB.Client(protocol);
|
||||
long columnId;
|
||||
|
||||
long tmpColumnId;
|
||||
try {
|
||||
tmpColumnId = client.getColumnId(columnName);
|
||||
} catch (TApplicationException ex) {
|
||||
tmpColumnId = client.createColumn(columnName, columnSchema);
|
||||
}
|
||||
columnId = tmpColumnId;
|
||||
long columnId = client.createColumn(columnName, columnSchema);
|
||||
var encoder = new BasicBSONEncoder();
|
||||
long nn = 0;
|
||||
long total = documentMap.size();
|
||||
|
Loading…
Reference in New Issue
Block a user