• Nils Goroll's avatar
    Move decision on fetch_chunksize to the storage engine · d77da13b
    Nils Goroll authored
    For chunked encoding, we do not know how big the object is ultimately
    going to be, so VFP_GetStorage() called ObjGetSpace() with the
    fetch_chunksize parameter in this case.
    
    Yet which size is best might differ for different storage engines, and
    having the information that the caller does not know the final size
    might be relevant. Storage engines could guess that if a request came
    in for fetch_chunksize that this _might_ be the "chunked" case, but
    that heuristic would be wrong for Objects of just that size advertised
    via Content-Length.
    
    So this patch takes the guesswork out of the game by just passing the
    magic 0 value down to the storage engine to mean "give me some good
    chunk of bytes, I do not know how much I am going to need".
    d77da13b
Name
Last commit
Last update
..
mgt_stevedore.c Loading commit data...
mgt_storage_persistent.c Loading commit data...
stevedore.c Loading commit data...
stevedore_utils.c Loading commit data...
storage.h Loading commit data...
storage_debug.c Loading commit data...
storage_file.c Loading commit data...
storage_lru.c Loading commit data...
storage_malloc.c Loading commit data...
storage_persistent.c Loading commit data...
storage_persistent.h Loading commit data...
storage_persistent_silo.c Loading commit data...
storage_persistent_subr.c Loading commit data...
storage_simple.c Loading commit data...
storage_simple.h Loading commit data...
storage_umem.c Loading commit data...