mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 08:03:49 +00:00
fixing various bugs with rhizome streaming to database.
This commit is contained in:
parent
f827c7c1c8
commit
39f99da3f2
@ -1297,7 +1297,12 @@ int rhizome_write_content(struct rhizome_fetch_slot *slot, char *buffer, int byt
|
||||
while(bytesRemaining>0) {
|
||||
int count=slot->blob_buffer_size-slot->blob_buffer_bytes;
|
||||
if (count>bytes) count=bytesRemaining;
|
||||
// DEBUGF("copying %d bytes to &blob_buffer[0x%x]",
|
||||
// count,slot->blob_buffer_bytes);
|
||||
// dump("buffer",buffer,count);
|
||||
bcopy(buffer,&slot->blob_buffer[slot->blob_buffer_bytes],count);
|
||||
// dump("first bytes into slot->blob_buffer",slot->blob_buffer,256);
|
||||
slot->blob_buffer_bytes+=count;
|
||||
buffer+=count; bytesRemaining-=count;
|
||||
if (slot->blob_buffer_bytes==slot->blob_buffer_size)
|
||||
rhizome_fetch_flush_blob_buffer(slot);
|
||||
|
Loading…
x
Reference in New Issue
Block a user