summaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/update/documentupdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/vespa/document/update/documentupdate.h')
-rw-r--r--document/src/vespa/document/update/documentupdate.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/document/src/vespa/document/update/documentupdate.h b/document/src/vespa/document/update/documentupdate.h
index 192569ba6ee..5a7944b1188 100644
--- a/document/src/vespa/document/update/documentupdate.h
+++ b/document/src/vespa/document/update/documentupdate.h
@@ -60,7 +60,7 @@ public:
* The document type is not strictly needed, as we know this at applyTo()
* time, but search does not use applyTo() code to do the update, and don't
* know the document type of their objects, so this is supplied for
- * convinience. It also makes it possible to check updates for sanity at
+ * convenience. It also makes it possible to check updates for sanity at
* creation time.
*
* @param type The document type that this update is applicable for.
@@ -101,6 +101,9 @@ public:
/** @return The type of document this update is for. */
const DocumentType& getType() const;
+ // Returns pointer to repo used for underlying update, or nullptr if default-constructed
+ const DocumentTypeRepo* getRepoPtr() const noexcept;
+
void serializeHEAD(vespalib::nbostream &stream) const;
/**