diff --git a/.travis.yml b/.travis.yml
index 2c92ee3..40a1f6d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
language: rust
-dist: trusty
-sudo: true
+dist: xenial
+sudo: false
os:
- linux
@@ -17,10 +17,12 @@ addons:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- - g++-5
- - llvm-3.9-dev
- - libclang-3.9-dev
- - clang-3.9
+ - g++
+ - llvm-dev
+ - libclang-dev
+ - clang
+
+cache: cargo
install:
- rustup component add rustfmt
@@ -30,8 +32,3 @@ script:
- cargo fmt --all -- --check
- cargo test --manifest-path=librocksdb-sys/Cargo.toml
- cargo test
-
-cache: cargo
-before_cache:
- - rm -rfv target/
-
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85e2c0a..f063735 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
* Added `Sync` and `Send` implementations to `Snapshot` (pavel-mukhanov)
* Added `raw_iterator_cf_opt` to the DB API (rnarubin)
* Added `DB::latest_sequence_number` method (vitvakatu)
+* Changed column families storing (aleksuss)
## 0.12.2 (2019-05-03)
diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs
index 1b1567a..e2c35aa 100644
--- a/librocksdb-sys/build.rs
+++ b/librocksdb-sys/build.rs
@@ -98,10 +98,10 @@ fn build_rocksdb() {
// (about 2011).
config.define("HAVE_PCLMUL", Some("1"));
config.define("HAVE_SSE42", Some("1"));
- config.flag("-msse2");
- config.flag("-msse4.1");
- config.flag("-msse4.2");
- config.flag("-mpclmul");
+ config.flag_if_supported("-msse2");
+ config.flag_if_supported("-msse4.1");
+ config.flag_if_supported("-msse4.2");
+ config.flag_if_supported("-mpclmul");
}
if target.contains("darwin") {
diff --git a/librocksdb-sys/tests/ffi.rs b/librocksdb-sys/tests/ffi.rs
index 87f1519..c6718a9 100644
--- a/librocksdb-sys/tests/ffi.rs
+++ b/librocksdb-sys/tests/ffi.rs
@@ -716,7 +716,7 @@ fn ffi() {
StartPhase("approximate_sizes");
{
- let mut sizes: [uint64_t; 2] = [0, 0];
+ let mut sizes: [u64; 2] = [0, 0];
let start: [*const c_char; 2] = [cstrp!("a"), cstrp!("k00000000000000010000")];
let start_len: [size_t; 2] = [1, 21];
let limit: [*const c_char; 2] = [cstrp!("k00000000000000010000"), cstrp!("z")];
diff --git a/src/backup.rs b/src/backup.rs
index 19f065c..bc35642 100644
--- a/src/backup.rs
+++ b/src/backup.rs
@@ -16,7 +16,7 @@
use ffi;
use {Error, DB};
-use libc::{c_int, uint32_t};
+use libc::c_int;
use std::ffi::CString;
use std::path::Path;
@@ -73,7 +73,7 @@ impl BackupEngine {
unsafe {
ffi_try!(ffi::rocksdb_backup_engine_purge_old_backups(
self.inner,
- num_backups_to_keep as uint32_t,
+ num_backups_to_keep as u32,
));
Ok(())
}
@@ -202,47 +202,3 @@ impl Drop for RestoreOptions {
}
}
}
-
-#[test]
-fn backup_restore() {
- use db::DBVector;
- use Options;
- // create backup
- let path = "_rust_rocksdb_backup_restore_test";
- {
- let db = DB::open_default(path).unwrap();
- let p = db.put(b"k1", b"v1111");
- assert!(p.is_ok());
- let r: Result