Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Oct 17, 2024
1 parent 51cd5c8 commit 8deb4e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Objective-C/CBLDatabase.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1026,10 +1026,8 @@ static C4DatabaseConfig2 c4DatabaseConfig2 (CBLDatabaseConfiguration *config) {

if (config.fullSync)
c4config.flags |= kC4DB_DiskSyncFull;
#if !TARGET_OS_OSX
if (!config.mmapEnabled)
c4config.flags |= kC4DB_MmapDisabled;
#endif

#ifdef COUCHBASE_ENTERPRISE
if (config.encryptionKey)
Expand Down
4 changes: 0 additions & 4 deletions Objective-C/Tests/DatabaseTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -2941,11 +2941,7 @@ - (void) testDatabaseWithConfiguredMMap {
CBLDatabase* db1 = [[CBLDatabase alloc] initWithName: @"mmap1" config: config error:&err];
CBLDatabaseConfiguration* tempConfig = [db1 config];
AssertFalse(tempConfig.mmapEnabled);
#if TARGET_OS_OSX
AssertFalse(([db1 getC4DBConfig]->flags & kC4DB_MmapDisabled) == kC4DB_MmapDisabled);
#else
Assert(([db1 getC4DBConfig]->flags & kC4DB_MmapDisabled) == kC4DB_MmapDisabled);
#endif

config.mmapEnabled = true;
CBLDatabase* db2 = [[CBLDatabase alloc] initWithName: @"mmap2" config: config error:&err];
Expand Down

0 comments on commit 8deb4e3

Please sign in to comment.