Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
2cee54b5
Commit
2cee54b5
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[ssi_af_ls] Detects when SSI buffer is full
parent
b7acaaf1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xroot_plugins/XrdCtaArchiveFileLs.hpp
+21
-10
21 additions, 10 deletions
xroot_plugins/XrdCtaArchiveFileLs.hpp
with
21 additions
and
10 deletions
xroot_plugins/XrdCtaArchiveFileLs.hpp
+
21
−
10
View file @
2cee54b5
...
...
@@ -35,13 +35,18 @@ struct Membuf: public std::streambuf
{
Membuf
(
char
*
buffer
,
size_t
size
)
{
// Set the boundaries of the buffer
this
->
setp
(
buffer
,
buffer
+
size
-
1
);
this
->
setp
(
buffer
,
buffer
+
size
);
}
//! Return the number of bytes in the buffer
size_t
length
()
const
{
return
pptr
()
-
pbase
();
}
int
overflow
(
int
c
)
override
{
std
::
cerr
<<
"OVERFLOW "
<<
c
<<
std
::
endl
;
return
0
;
}
};
...
...
@@ -90,7 +95,10 @@ public:
//! Overload << to allow streaming into the buffer
template
<
typename
T
>
omemstream
&
operator
<<
(
const
T
&
t
)
{
m_out
<<
t
;
return
m_out
;
}
omemstream
&
operator
<<
(
const
T
&
t
)
{
m_out
<<
t
;
return
m_out
;
}
private
:
//! Called by the XrdSsi framework when it is finished with the object
...
...
@@ -108,6 +116,9 @@ private:
namespace
cta
{
namespace
xrd
{
/*!
...
...
@@ -120,13 +131,6 @@ public:
XrdSsiStream
(
XrdSsiStream
::
isActive
),
m_show_header
(
show_header
)
{
std
::
cerr
<<
"[DEBUG] ArchiveFileLsStream() constructor"
<<
std
::
endl
;
#if 0
ArchiveFileLsStream(m_catalogue.getArchiveFiles(searchCriteria), has_flag(OptionBoolean::SHOW_HEADER));
XrdOucErrInfo xrdSfsFileError;
m_listArchiveFilesCmd.reset(new xrootPlugins::ListArchiveFilesCmd(xrdSfsFileError, has_flag(OptionBoolean::SHOW_HEADER), std::move(archiveFileItor)));
#endif
}
virtual
~
ArchiveFileLsStream
()
{
...
...
@@ -162,7 +166,7 @@ m_listArchiveFilesCmd.reset(new xrootPlugins::ListArchiveFilesCmd(xrdSfsFileErro
}
*
buffer
<<
"HELLO,"
<<
" WORLD! "
<<
std
::
endl
;
last
=
tru
e
;
last
=
fals
e
;
dlen
=
buffer
->
length
();
std
::
cerr
<<
"Returning buffer with "
<<
dlen
<<
" bytes of data."
<<
std
::
endl
;
...
...
@@ -202,6 +206,13 @@ private:
bool
m_show_header
;
};
#if 0
ArchiveFileLsStream(m_catalogue.getArchiveFiles(searchCriteria), has_flag(OptionBoolean::SHOW_HEADER));
XrdOucErrInfo xrdSfsFileError;
m_listArchiveFilesCmd.reset(new xrootPlugins::ListArchiveFilesCmd(xrdSfsFileError, has_flag(OptionBoolean::SHOW_HEADER), std::move(archiveFileItor)));
#endif
#if 0
{
m_readBuffer <<
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment