From bb38ef4433fbef9dee1f7ae1d1c6859f1f8e8357 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 21 Feb 2017 12:40:06 +0000 Subject: [PATCH] Comment on what the RoomRecentEventsUpdater is doing --- src/github.com/matrix-org/dendrite/roomserver/types/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/types/types.go b/src/github.com/matrix-org/dendrite/roomserver/types/types.go index ad1000ac4..bdc85bf9b 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/types/types.go +++ b/src/github.com/matrix-org/dendrite/roomserver/types/types.go @@ -127,6 +127,8 @@ type StateEntryList struct { } // A RoomRecentEventsUpdater is used to update the recent events in a room. +// (On postgresql this wraps a database transaction that holds a "FOR UPDATE" +// lock on the a row holding the latest events for the room.) type RoomRecentEventsUpdater interface { // Store the previous events referenced by an event. StorePreviousEvents(eventNID EventNID, previousEventReferences []gomatrixserverlib.EventReference) error