예제 #1
0
  rocksdb::Status CreatePDS( const rocksdb::Slice &aPDSName,
                             const rocksdb::Slice &aPDSId,
                             const rocksdb::Slice &aPDSData )
  {
    rocksdb::Status rs = mPDSDBHndl->Put( mPDSwropts,
                                          aPDSName,
                                          aPDSData );

    if( rs.ok() )
    {
      rs = mPDSDBHndl->Put( mPDSwropts,
                            aPDSId,
                            aPDSData );
    }
    return rs;
  }
예제 #2
0
 rocksdb::Status PutData( const rocksdb::Slice &aKey, const rocksdb::Slice &aValue )
 {
   return mDataDBHndl->Put( mPDSwropts, aKey, aValue );
 }