mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
In Cassandra, when you create a new column family, a directory for it immediately appears under the KS directory. In the past, we have made a decision to delay that creation until the first SSTable is created, which works well in general. There is a problem, however, for backup restoration: the standard procedure to call loadNewSSTables is to do that in an empty directory. But the directory simply won't be there until we create the first SSTable: bummer! In the current incarnation of the code in schema_tables.cc, there is already some code that runs on CPU0 only. That is a perfect place for the directory creation. So let's do it. After this patch, a directory for the CF appears right after the CF creation. Signed-off-by: Glauber Costa <glommer@scylladb.com>