Skip to content

Commit

Permalink
admin: add dockey to adddoc message
Browse files Browse the repository at this point in the history
Signed-off-by: Rashesh Padia <[email protected]>
Change-Id: I1f6432a3872e5d0dc91cb47e25e0d306402e88f0
  • Loading branch information
Rash419 committed Jun 12, 2024
1 parent 9b58ec6 commit dba1e5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wsd/AdminModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ void AdminModel::addDocument(const std::string& docKey, pid_t pid,
}

const std::string& wopiHost = wopiSrc.getHost();
oss << memoryAllocated << ' ' << wopiHost << ' ' << isViewReadOnly << ' ' << wopiSrc.toString();
oss << memoryAllocated << ' ' << wopiHost << ' ' << isViewReadOnly << ' ' << wopiSrc.toString()
<< ' ' << Util::decodeURIComponent(docKey);
if (COOLWSD::getConfigValue<bool>("logging.docstats", false))
{
std::string docstats = "docstats : adding a document : " + filename
Expand Down
6 changes: 5 additions & 1 deletion wsd/protocol.txt
Original file line number Diff line number Diff line change
Expand Up @@ -917,13 +917,17 @@ Commands marked with [*] are notifications that are delivered only if client is
subscribed to these commands using `subscribe` (see client->admin
section). Others are just response messages to some client command.

[*] adddoc <pid> <filename> <sessionid> <username> <userid> <memory consumed> <wopiHost> <isViewReadOnly> <wopiSrc>
[*] adddoc <pid> <filename> <sessionid> <username> <userid> <memory consumed>
<wopiHost> <isViewReadOnly> <wopiSrc> <dockey>

<pid> process id hosting the document
<filename> URL encoded name of the file
<sessionid> string identifying the view of this document
<memory consumed> RSS of <pid> in kilobytes
<wopihost> storage host on which document exist
<isViewReadOnly> if the view is readonly
<wopiSrc> wopisrc of the document
<dockey> unique identifying key of the document

[*] rmdoc <pid> <sessionid>

Expand Down

0 comments on commit dba1e5e

Please sign in to comment.