summaryrefslogtreecommitdiffstats
path: root/src/common/admin_socket_client.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common: Remove redundant includesJos Collin2017-05-261-1/+0
| | | | | | Fixes: http://tracker.ceph.com/issues/19883 (Partially) Signed-off-by: Jos Collin <jcollin@redhat.com>
* common: ping existing admin socket before unlinkLoic Dachary2014-02-161-0/+1
| | | | | | | | | | | | | | | | | When a daemon initializes it tries to create an admin socket and unlinks any pre-existing file, regardless. If such a file is in use, it causes the existing daemon to loose its admin socket. The AdminSocketClient::ping is implemented to probe an existing socket, using the "0" message. The AdminSocket::bind_and_listen function is modified to call ping() on when it finds existing file. It unlinks the file only if the ping fails. http://tracker.ceph.com/issues/7188 fixes: #7188 Backport: emperor, dumpling Reviewed-by: Sage Weil <sage@inktank.com> Signed-off-by: Loic Dachary <loic@dachary.org>
* admin_socket: fix, extend admin_socket unit testsSage Weil2012-01-061-4/+1
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* admin_socket: implement schema requestColin Patrick McCabe2011-07-271-0/+2
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* admin_socket: change request 0 to get versionColin Patrick McCabe2011-07-251-1/+2
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* re-enable proflogger testColin Patrick McCabe2011-07-211-0/+2
| | | | | | | Re-enable the proflogger test. This time, it doesn't test the basic socket functionality (that is what test/admin_socket.cc is for). Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* test/admin_socket: test message 0Colin Patrick McCabe2011-07-211-1/+4
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* Move ProfLogger socket code into admin_socketColin Patrick McCabe2011-07-201-0/+30
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>