Skip to content

Commit 3764b97

Browse files
committed
Merge branch 'release/0.10.0'
2 parents 2baf339 + ee819f2 commit 3764b97

15 files changed

+230
-339
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ script:
2727
- set -o pipefail
2828
- xcodebuild -version
2929
- xcodebuild -showsdks
30-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO clean build | xcpretty -c
31-
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c;
32-
- travis_wait 30 pod lib lint --skip-import-validation --allow-warnings --verbose
30+
- travis_retry xcodebuild -quiet -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO clean build | xcpretty -c
31+
- travis_retry xcodebuild -quiet -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c;
32+
- travis_wait 30 pod lib lint --skip-import-validation --allow-warnings

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
4+
## [0.10.0](https://github.com/iabudiab/ObjectiveRocks/releases/tag/0.10.0)
5+
6+
Released on 2019.09.29
7+
8+
- Updated to RocksDB `6.2.4`
9+
- Thanks to @jurmous in PR #18
10+
11+
312
## [0.9.0](https://github.com/iabudiab/ObjectiveRocks/releases/tag/0.9.0)
413

514
Released on 2017.05.25

Code/RocksDBCompactRangeOptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ typedef NS_ENUM(NSUInteger, RocksDBBottommostLevelCompaction)
1818
RocksDBBottommostLevelCompactionSkip,
1919
RocksDBBottommostLevelCompactionIfHaveCompactionFilter,
2020
RocksDBBottommostLevelCompactionForce,
21+
RocksDBBottommostLevelCompactionForceOptimized
2122
};
2223

2324
/**

Code/RocksDBCompactRangeOptions.mm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ - (RocksDBBottommostLevelCompaction)bottommostLevelCompaction
6060
return RocksDBBottommostLevelCompactionIfHaveCompactionFilter;
6161
case rocksdb::BottommostLevelCompaction::kForce:
6262
return RocksDBBottommostLevelCompactionForce;
63-
}
63+
case rocksdb::BottommostLevelCompaction::kForceOptimized:
64+
return RocksDBBottommostLevelCompactionForceOptimized;
65+
}
6466
}
6567

6668
- (void)setBottommostLevelCompaction:(RocksDBBottommostLevelCompaction)bottommostLevelCompaction
@@ -72,7 +74,9 @@ - (void)setBottommostLevelCompaction:(RocksDBBottommostLevelCompaction)bottommos
7274
_options.bottommost_level_compaction = rocksdb::BottommostLevelCompaction::kIfHaveCompactionFilter;
7375
case RocksDBBottommostLevelCompactionForce:
7476
_options.bottommost_level_compaction = rocksdb::BottommostLevelCompaction::kForce;
75-
}
77+
case RocksDBBottommostLevelCompactionForceOptimized:
78+
_options.bottommost_level_compaction = rocksdb::BottommostLevelCompaction::kForceOptimized;
79+
}
7680
}
7781

7882
@end

Code/RocksDBError.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#import <rocksdb/status.h>
1212

1313
NSString * const RocksDBErrorDomain = @"co.braincookie.objectiverocks.error";
14+
NSString * const RocksDBSubcodeKey = @"rocksdb.subcode";
1415

1516
@implementation RocksDBError
1617

@@ -20,7 +21,8 @@ + (NSError *)errorWithRocksStatus:(rocksdb::Status)status
2021

2122
NSDictionary *userInfo = @{
2223
NSLocalizedDescriptionKey : @"Operation couldn't be completed",
23-
NSLocalizedFailureReasonErrorKey : reason
24+
NSLocalizedFailureReasonErrorKey : reason,
25+
RocksDBSubcodeKey: @(status.subcode())
2426
};
2527

2628
return [NSError errorWithDomain:RocksDBErrorDomain code:status.code() userInfo:userInfo];

Code/RocksDBMemTableRepFactory.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ NS_ASSUME_NONNULL_BEGIN
4545
*/
4646
+ (instancetype)hashLinkListRepFactory;
4747

48-
/**
49-
Creates cuckoo-hashing based MemTableRep. Cuckoo-hash is a closed-hash
50-
strategy, in which all key/value pairs are stored in the bucket array
51-
itself intead of in some data structures external to the bucket array.
52-
53-
@param writeBufferSize The write buffer size in bytes.
54-
*/
55-
+ (instancetype)hashCuckooRepFactoryWithWriteBufferSize:(size_t)writeBufferSize;
56-
5748
#endif
5849

5950
@end

Code/RocksDBMemTableRepFactory.mm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ + (instancetype)hashLinkListRepFactory
4242
return [[self alloc] initWithNativeMemTableRepFactory:rocksdb::NewHashLinkListRepFactory()];
4343
}
4444

45-
+ (instancetype)hashCuckooRepFactoryWithWriteBufferSize:(size_t)writeBufferSize
46-
{
47-
return [[self alloc] initWithNativeMemTableRepFactory:rocksdb::NewHashCuckooRepFactory(writeBufferSize)];
48-
}
49-
5045
#endif
5146

5247
- (instancetype)initWithNativeMemTableRepFactory:(rocksdb::MemTableRepFactory *)factory

Framework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.9.0</string>
18+
<string>0.10.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[
2-
]
2+
]

ObjectiveRocks.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ObjectiveRocks'
3-
s.version = '0.9.0'
3+
s.version = '0.10.0'
44
s.summary = 'Objective-C wrapper of RocksDB - A Persistent Key-Value Store for Flash and RAM Storage.'
55
s.license = 'MIT'
66
s.homepage = 'https://github.com/iabudiab/ObjectiveRocks'

0 commit comments

Comments
 (0)