File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
foundationdb-bindingtester/src Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1198,11 +1198,18 @@ impl StackMachine {
1198
1198
// limits, so these bindings can obtain different sizes back.
1199
1199
GetApproximateSize => {
1200
1200
debug ! ( "get_approximate_size" ) ;
1201
- trx. as_mut ( )
1202
- . get_approximate_size ( )
1203
- . await
1204
- . expect ( "failed to get approximate size" ) ;
1205
- self . push ( number, GOT_APPROXIMATE_SIZE . clone ( ) . into_owned ( ) ) ;
1201
+ #[ cfg( feature = "fdb-6_2" ) ]
1202
+ {
1203
+ trx. as_mut ( )
1204
+ . get_approximate_size ( )
1205
+ . await
1206
+ . expect ( "failed to get approximate size" ) ;
1207
+ self . push ( number, GOT_APPROXIMATE_SIZE . clone ( ) . into_owned ( ) ) ;
1208
+ }
1209
+ #[ cfg( not( feature = "fdb-6_2" ) ) ]
1210
+ {
1211
+ unimplemented ! ( "get_approximate_size requires fdb620+" ) ;
1212
+ }
1206
1213
}
1207
1214
1208
1215
// Pops the top item off the stack and pushes it back on. If the top item on
You can’t perform that action at this time.
0 commit comments