File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ public static boolean isDatabaseOpen(File directory) throws IOException {
453453 */
454454 @ Experimental
455455 public static long sysProcMeminfoKb (String key ) {
456+ NativeLibraryLoader .ensureLoaded ();
456457 return nativeSysProcMeminfoKb (key );
457458 }
458459
@@ -475,6 +476,7 @@ public static long sysProcMeminfoKb(String key) {
475476 */
476477 @ Experimental
477478 public static long sysProcStatusKb (String key ) {
479+ NativeLibraryLoader .ensureLoaded ();
478480 return nativeSysProcStatusKb (key );
479481 }
480482
@@ -720,6 +722,7 @@ public static boolean deleteAllFiles(File objectStoreDirectory) {
720722 if (isFileOpen (canonicalPath )) {
721723 throw new IllegalStateException ("Cannot delete files: store is still open" );
722724 }
725+ NativeLibraryLoader .ensureLoaded ();
723726 return nativeRemoveDbFiles (canonicalPath , true );
724727 }
725728
You can’t perform that action at this time.
0 commit comments