Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glean.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ library rts
glean/rts/ownership/fallbackavx.h
glean/rts/ownership.h
glean/rts/ownership/pool.h
glean/rts/ownership/setu32.h
glean/rts/ownership/setu64.h
glean/rts/ownership/slice.h
glean/rts/ownership/triearray.h
glean/rts/ownership/uset.h
Expand Down
2 changes: 1 addition & 1 deletion glean/db/Glean/Database/Storage/RocksDB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ instance Storage RocksDB where
unsafeWithForeignPtr (dbPtr db) $ \db_ptr ->
unsafeWithBytes unit $ \unit_ptr unit_size -> do
w64 <- invoke $ glean_rocksdb_get_unit_id db_ptr unit_ptr unit_size
if w64 > 0xffffffff
if w64 == 0xffffffffffffffff
then return Nothing
else return (Just (UnitId (fromIntegral w64)))

Expand Down
4 changes: 2 additions & 2 deletions glean/rocksdb/ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void glean_rocksdb_container_free(Container* container) {
const char* glean_rocksdb_container_open_database(
Container* container,
glean_fact_id_t start,
uint32_t first_unit_id,
uint64_t first_unit_id,
int64_t version,
Database** database) {
return ffi::wrap([=] {
Expand Down Expand Up @@ -181,7 +181,7 @@ const char* glean_rocksdb_get_unit_id(

const char* glean_rocksdb_get_unit(
Database* db,
uint32_t unit_id,
uint64_t unit_id,
void** unit,
size_t* unit_size) {
return ffi::wrap([=] {
Expand Down
2 changes: 1 addition & 1 deletion mk/cxx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CXX_SOURCES_glean_cpp_rts = \
glean/rts/nat.cpp \
glean/rts/ownership.cpp \
glean/rts/ownership/derived.cpp \
glean/rts/ownership/setu32.cpp \
glean/rts/ownership/setu64.cpp \
glean/rts/ownership/slice.cpp \
glean/rts/ownership/uset.cpp \
glean/rts/prim.cpp \
Expand Down
Loading