File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1148,6 +1148,7 @@ public virtual CollectionStatsResult GetStats(GetStatsArgs args)
1148
1148
/// Gets the total data size for this collection (data + indexes).
1149
1149
/// </summary>
1150
1150
/// <returns>The total data size.</returns>
1151
+ [ Obsolete ( "This method will be removed in the next version of the driver." ) ]
1151
1152
public virtual long GetTotalDataSize ( )
1152
1153
{
1153
1154
var totalSize = GetStats ( ) . DataSize ;
@@ -1164,6 +1165,7 @@ public virtual long GetTotalDataSize()
1164
1165
/// Gets the total storage size for this collection (data + indexes + overhead).
1165
1166
/// </summary>
1166
1167
/// <returns>The total storage size.</returns>
1168
+ [ Obsolete ( "This method will be removed in the next version of the driver." ) ]
1167
1169
public virtual long GetTotalStorageSize ( )
1168
1170
{
1169
1171
var totalSize = GetStats ( ) . StorageSize ;
Original file line number Diff line number Diff line change @@ -2942,17 +2942,21 @@ public void TestStrictWrite()
2942
2942
}
2943
2943
2944
2944
[ Test ]
2945
- [ RequiresServer ( StorageEngines = "mmapv1 " ) ]
2945
+ [ RequiresServer ( VersionLessThan = "2.8.0 " ) ]
2946
2946
public void TestTotalDataSize ( )
2947
2947
{
2948
+ #pragma warning disable 618
2948
2949
var dataSize = _collection . GetTotalDataSize ( ) ;
2950
+ #pragma warning restore
2949
2951
}
2950
2952
2951
2953
[ Test ]
2952
- [ RequiresServer ( StorageEngines = "mmapv1 " ) ]
2954
+ [ RequiresServer ( VersionLessThan = "2.8.0 " ) ]
2953
2955
public void TestTotalStorageSize ( )
2954
2956
{
2957
+ #pragma warning disable 618
2955
2958
var dataSize = _collection . GetTotalStorageSize ( ) ;
2959
+ #pragma warning restore
2956
2960
}
2957
2961
2958
2962
[ Test ]
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ private void EnsureVersion()
195
195
196
196
if ( VersionLessThan != null )
197
197
{
198
- var version = new Version ( MinimumVersion ) ;
198
+ var version = new Version ( VersionLessThan ) ;
199
199
200
200
if ( Configuration . TestServer . BuildInfo . Version >= version )
201
201
{
You can’t perform that action at this time.
0 commit comments