The assert should be olog.backlog, not log.backlog. But it's the same
condition as the if guard that's 3 lines up, making it pretty useless.
Just drop it.
Log it to the central log so it gets noticed, and
delete the "wrong inode" instead of just unlinking it, to prevent later crashiness.
Should at least band-aid over #312.
The gateway now supports changing the verbosity of the logging, this can be achieved by changing the
RGW_LOG_LEVEL envirioment parameter.
For Apache running systems, this can be done with mod_env: SetEnv RGW_LOG_LEVEL 20
This will change the loglevel to the highest level and produce a lot of usefull output for debugging purposes.
For now, all the messages will go to webservers logfile (For Apache: error_log)
./include/encoding.h: In member function void
Locker::issue_client_lease(CDentry*, client_t, ceph::bufferlist&, utime_t,
Session*):
./include/encoding.h:80: warning: e.LeaseStat::duration_ms may be used
uninitialized in this function
This is to let the client know we accept requests for partial content.
On HEAD requests we should also return the Content-Length header.
And we should also return the Last-Modified header with GET and HEAD requests, this way browsers and proxy's can cache content.
If we send directly to the local/loopback connection, we need to
queue it for local delivery, not go through the usual send paths.
This fixes lost replies to messages sent to self (e.g., reply to
local anchortable).
Signed-off-by: Sage Weil <sage@newdream.net>
Before, we would provide "have" and a bool "onetime" flag. The struct was
also screwed up with an extra __le64. Then have=0 was a special case
that meant "give me the latest".
The problem is this is ambiguous between the usual "give me everything
since X" and "give me your latest", because you might actually have 0 and
want 1..current.
Changes protocol and cleans up the struct:
- now "start" and "flags", where only 1 flag (ONETIME) is defined
- clean up sub_want_* methods throughout
- fix all sub_want callers to ask for _start_ (not have) epoch, or 0 for
any/latest
- add a feature bit; talks old clients w/o that bit
Signed-off-by: Sage Weil <sage@newdream.net>