db/system_keyspace: scylla_views_builds_in_progress writes are user mem

Treat writes to scylla_views_builds_in_progress as user memory, as the
number of writes is dependent on the amount of user data on views
(times the number of views, divided by the view building batch size).

Fixes #3325

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
Duarte Nunes
2018-04-03 13:10:17 +01:00
parent bf5045c7eb
commit 75bb66a50d

View File

@@ -1582,7 +1582,8 @@ static void maybe_add_virtual_reader(schema_ptr s, database& db) {
}
static bool maybe_write_in_user_memory(schema_ptr s, database& db) {
return (s.get() == batchlog().get());
return (s.get() == batchlog().get())
|| s == v3::scylla_views_builds_in_progress();
}
void make(database& db, bool durable, bool volatile_testing_only) {