Skip to content

Commit 17afca0

Browse files
committed
set bytes used on creation of filesystem -- needed for not null constraint that I didn't see in testing (due to not new db schema)
1 parent b6accac commit 17afca0

File tree

1 file changed

+2
-0
lines changed
  • src/packages/server/compute/cloud-filesystem

1 file changed

+2
-0
lines changed

src/packages/server/compute/cloud-filesystem/create.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ export async function createCloudFilesystem(opts: Options): Promise<number> {
216216
push("last_edited", now);
217217
const port = await getPort(opts.project_id);
218218
push("port", port);
219+
// bytes_used MUST always be set, and of course initially it is 0.
220+
push("bytes_used", 0);
219221

220222
// there could be a race condition if user tries to make two cloud filesystems at
221223
// same time for same project -- one would fail and they get an error due to

0 commit comments

Comments
 (0)