From 266b83efd06d17eafe8302bd7478547595056451 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Wed, 30 Oct 2019 20:04:58 +0000 Subject: [PATCH] DBRawIterator can be Sync --- src/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.rs b/src/db.rs index 53c6b9a..bc80d98 100644 --- a/src/db.rs +++ b/src/db.rs @@ -2017,6 +2017,7 @@ unsafe impl Send for ReadOptions {} // Sync is similarly safe for many types because they do not expose interior mutability, and their // use within the rocksdb library is generally behind a const reference +unsafe impl<'a> Sync for DBRawIterator<'a> {} unsafe impl Sync for ReadOptions {} /// Vector of bytes stored in the database.