[Gluster-devel] [write-beind] why we don't cache if length of data can not be divided by 4096.

LI Daobing lidaobing at gmail.com
Wed Dec 19 06:34:03 UTC 2007


Hello,

a code in write-behind.c, function wb_writev:
// begin
  if ((file->size >= conf->aggregate_size) ||
      (iov_length (vector, count) % 4096)) {
    wb_sync (wb_frame, file);
  }
// end

Why we don't cache(or aggregate) data, if the length of the data can
not be divided by 4096?

Any reason for this decision?

Thanks,
LI Daobing





More information about the Gluster-devel mailing list