Skip to content

Commit

Permalink
remove methods that have been removed on latest rocksdb release
Browse files Browse the repository at this point in the history
  • Loading branch information
theolivenbaum committed Feb 2, 2022
1 parent de6b157 commit 0b78c86
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
47 changes: 0 additions & 47 deletions csharp/src/ColumnFamilyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -777,28 +777,6 @@ public ColumnFamilyOptions SetMaxWriteBufferNumberToMaintain(int value)
return this;
}

// DEPRECATED -- this options is no longer used
// Puts are delayed to options.delayed_write_rate when any level has a
// compaction score that exceeds soft_rate_limit. This is ignored when == 0.0.
//
// Default: 0 (disabled)
//
// Dynamically changeable through SetOptions() API
[Obsolete("this option is no longer used")]
public ColumnFamilyOptions SetSoftRateLimit(double value)
{
Native.Instance.rocksdb_options_set_soft_rate_limit(Handle, value);
return this;
}

// DEPRECATED -- this options is no longer used
[Obsolete("this option is no longer used")]
public ColumnFamilyOptions SetHardRateLimit(double value)
{
Native.Instance.rocksdb_options_set_hard_rate_limit(Handle, value);
return this;
}

/// <summary>
/// All writes will be slowed down to at least delayed_write_rate if estimated
/// bytes needed to be compaction exceed this threshold.
Expand All @@ -823,14 +801,6 @@ public ColumnFamilyOptions SetHardPendingCompactionBytesLimit(ulong value)
return this;
}

// DEPRECATED -- this options is no longer used
[Obsolete("this option is no longer used")]
public ColumnFamilyOptions SetRateLimitDelayMaxMilliseconds(uint value)
{
Native.Instance.rocksdb_options_set_rate_limit_delay_max_milliseconds(Handle, value);
return this;
}

/// <summary>
/// size of one block in arena memory allocation.
/// If <= 0, a proper value is automatically calculated (usually 1/8 of
Expand All @@ -854,23 +824,6 @@ public ColumnFamilyOptions SetArenaBlockSize(ulong value)
return this;
}

// DEPREACTED
// Does not have any effect.
[Obsolete("Does not have any effect")]
public ColumnFamilyOptions SetPurgeRedundantKvsWhileFlush(bool value)
{
Native.Instance.rocksdb_options_set_purge_redundant_kvs_while_flush(Handle, value);
return this;
}

// DEPRECATED -- this options is no longer used
[Obsolete("this option is no longer used")]
public ColumnFamilyOptions SetSkipLogErrorOnRecovery(bool value)
{
Native.Instance.rocksdb_options_set_skip_log_error_on_recovery(Handle, value);
return this;
}

/// <summary>
/// An iteration->Next() sequentially skips over keys with the same
/// user-key unless this option is set. This number specifies the number
Expand Down
21 changes: 0 additions & 21 deletions csharp/src/DbOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,6 @@ public DbOptions SetMaxBackgroundCompactions(int value)
return this;
}

/// <summary>
/// Suggested number of concurrent background compaction jobs, submitted to
/// the default LOW priority thread pool.
///
/// Default: 1
/// </summary>
/// <returns></returns>
public DbOptions SetBaseBackgroundCompactions(int value)
{
Native.Instance.rocksdb_options_set_base_background_compactions(Handle, value);
return this;
}

/// <summary>
/// Maximum number of concurrent background memtable flush jobs, submitted to
/// the HIGH priority thread pool.
Expand Down Expand Up @@ -310,14 +297,6 @@ public DbOptions SetTableCacheNumShardbits(int value)
return this;
}

// DEPRECATED
[Obsolete]
public DbOptions SetTableCacheRemoveScanCountLimit(int value)
{
Native.Instance.rocksdb_options_set_table_cache_remove_scan_count_limit(Handle, value);
return this;
}

/// <summary>
/// If true, then every store to stable storage will issue a fsync.
/// If false, then every store to stable storage will issue a fdatasync.
Expand Down

0 comments on commit 0b78c86

Please sign in to comment.