File tree Expand file tree Collapse file tree
db/Glean/Database/Storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ library rts
358358 glean/rts/ownership/fallbackavx.h
359359 glean/rts/ownership.h
360360 glean/rts/ownership/pool.h
361- glean/rts/ownership/setu32 .h
361+ glean/rts/ownership/setu64 .h
362362 glean/rts/ownership/slice.h
363363 glean/rts/ownership/triearray.h
364364 glean/rts/ownership/uset.h
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ instance Storage RocksDB where
211211 unsafeWithForeignPtr (dbPtr db) $ \ db_ptr ->
212212 unsafeWithBytes unit $ \ unit_ptr unit_size -> do
213213 w64 <- invoke $ glean_rocksdb_get_unit_id db_ptr unit_ptr unit_size
214- if w64 > 0xffffffff
214+ if w64 == 0xffffffffffffffff
215215 then return Nothing
216216 else return (Just (UnitId (fromIntegral w64)))
217217
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ void glean_rocksdb_container_free(Container* container) {
112112const char * glean_rocksdb_container_open_database (
113113 Container* container,
114114 glean_fact_id_t start,
115- uint32_t first_unit_id,
115+ uint64_t first_unit_id,
116116 int64_t version,
117117 Database** database) {
118118 return ffi::wrap ([=] {
@@ -181,7 +181,7 @@ const char* glean_rocksdb_get_unit_id(
181181
182182const char * glean_rocksdb_get_unit (
183183 Database* db,
184- uint32_t unit_id,
184+ uint64_t unit_id,
185185 void ** unit,
186186 size_t * unit_size) {
187187 return ffi::wrap ([=] {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ CXX_SOURCES_glean_cpp_rts = \
3131 glean/rts/nat.cpp \
3232 glean/rts/ownership.cpp \
3333 glean/rts/ownership/derived.cpp \
34- glean/rts/ownership/setu32 .cpp \
34+ glean/rts/ownership/setu64 .cpp \
3535 glean/rts/ownership/slice.cpp \
3636 glean/rts/ownership/uset.cpp \
3737 glean/rts/prim.cpp \
You can’t perform that action at this time.
0 commit comments