From 648026574f3c9339405ae35cb0d8036bdac9dca7 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Tue, 15 Mar 2022 20:00:52 +0100 Subject: [PATCH] Commit on useradd --- bffhd/users/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bffhd/users/db.rs b/bffhd/users/db.rs index f852c31..93878f4 100644 --- a/bffhd/users/db.rs +++ b/bffhd/users/db.rs @@ -110,6 +110,7 @@ impl UserDB { let mut txn = self.env.begin_rw_txn()?; let flags = WriteFlags::empty(); self.db.put(&mut txn, &uid.as_bytes(), user, flags)?; + txn.commit()?; Ok(()) }