this code what mean
if (LONG_MAX == LLONG_MAX)
if (string_size < 1ll<<32)
return SDS_TYPE_32;
return SDS_TYPE_64;
In what scenario would LONG_MAX be equal to LLONG_MAX? Since they are equal, what is the significance of returning 64-bit?
Comment From: sundb
LONG_MAX == LLONG_MAX means we are using 64 bit system, at this time sds supports large string larger than 4GB.
Comment From: liqinliang
tks I misunderstood.