search for: dsync_brain

Displaying 5 results from an estimated 5 matches for "dsync_brain".

2018 Jun 13
1
2.3.1 Replication is throwing scary errors
...t lock .dovecot-sync.lock: safe_mkstemp(.dovecot-sync.lock) failed: No such file or directory diff --git a/src/doveadm/dsync/dsync-brain.c b/src/doveadm/dsync/dsync-brain.c index c2b8169..1e84182 100644 --- a/src/doveadm/dsync/dsync-brain.c +++ b/src/doveadm/dsync/dsync-brain.c @@ -401,6 +401,7 @@ dsync_brain_lock(struct dsync_brain *brain, const char *remote_hostname) .lock_method = FILE_LOCK_METHOD_FCNTL, }; const char *home, *error, *local_hostname = my_hostdomain(); + struct stat st; bool created; int ret; @@ -437,8 +438,21 @@ dsync_brain_lock(...
2018 Jun 06
7
2.3.1 Replication is throwing scary errors
Should be fixed by https://github.com/dovecot/core/commit/a952e178943a5944255cb7c053d970f8e6d49336 <https://github.com/dovecot/core/commit/a952e178943a5944255cb7c053d970f8e6d49336> -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180606/996cfe38/attachment.html>
2013 Apr 02
1
v2.2 getting NULL pointer reference with shared namespace in mailbox_tree?
...sync_mailbox_node *) 0x455eaa dup_node2 = (struct dsync_mailbox_node *) 0xffff80ffbffff280 info = (const struct mailbox_info *) 0x51bf60 list_pattern = 0x474a44 "*" ret = 0 __FUNCTION__ = "dsync_mailbox_tree_fill" #17 0x000000000044b060 in dsync_brain_mailbox_trees_init (brain=0x518740) at dsync-brain-mailbox-tree.c:31 ns = (struct mail_namespace *) 0x4b9770 #18 0x00000000004487ae in dsync_brain_slave_recv_handshake (brain=0x518740) at dsync-brain.c:99 ibc_set = (const struct dsync_ibc_settings *) 0x4b34a0 __FUNCTION__ =...
2013 Feb 26
2
(no subject)
...list_iter_init_multiple+0x91 [0xffff80ff94e5a120] -> /m/sw/dc/2.2-20130226/lib/dovecot/libdovecot-storage.so.0.0.0'mailbox_list_iter_init+0x39 [0xffff80ff94e59c96] -> /m/sw/dc/2.2-20130226/bin/doveadm'dsync_mailbox_tree_fill+0x103 [0x45443a] -> /m/sw/dc/2.2-20130226/bin/doveadm'dsync_brain_mailbox_trees_init+0x114 [0x448d1c] -> /m/sw/dc/2.2-20130226/bin/doveadm'dsync_brain_slave_recv_handshake+0x18d [0x4464d6] -> /m/sw/dc/2.2-20130226/bin/doveadm'dsync_brain_run_real+0xe7 [0x44681f] -> /m/sw/dc/2.2-20130226/bin/doveadm'dsync_brain_run+0x61 [0x4469c9] -> /m/sw/...
2018 Aug 02
2
Duplicate mails on pop3 expunge with dsync replication on 2.2.35 (2.2.33.2 works)
...ail-storage-private.h" +#include "dsync-brain-private.h" #include "dsync-mailbox.h" void dsync_mailbox_attribute_dup(pool_t pool, @@ -20,3 +22,40 @@ dest_r->last_change = src->last_change; dest_r->modseq = src->modseq; } + +int dsync_mailbox_lock(struct dsync_brain *brain, struct mailbox *box, + struct file_lock **lock_r) +{ + const char *path, *error; + int ret; + + /* Make sure the mailbox is open - locking requires it */ + if (mailbox_open(box) < 0) { + i_error("Can't open mailbox %s: %s", mailbox_get_vname(box), + mailbox_get_l...