Skip to content

Commit

Permalink
[Server] Fix synchronous pgwrite when file is greater than 1 MB.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and gganis committed Nov 23, 2021
1 parent 7799107 commit 2cc06ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdXrootd/XrdXrootdPgwCtl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const char *XrdXrootdPgwCtl::Setup(XrdBuffer *buffP, kXR_int64 fOffs, int totlen
iovRem = csNum<<1;
if (iovRem > iovMax)
{iovNum = iovMax;
iovLen = layout.fLen + ((iovMax-1)*pgPageSize) + (iovMax*crcSZ);
iovLen = layout.fLen + ((iovMax/2-1)*pgPageSize) + (iovMax/2*crcSZ);
endLen = layout.lLen;
} else {
iovNum = iovRem;
Expand Down
1 change: 1 addition & 0 deletions src/XrdXrootd/XrdXrootdXeqPgrw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ do{if (isFresh)
// Update offset and advance to next frame
//
IO.Offset += Quantum;
isFresh = true;

} while(pgwCtl->Advance());

Expand Down

0 comments on commit 2cc06ab

Please sign in to comment.