summaryrefslogtreecommitdiff
path: root/sbin/hastd/primary.c
Commit message (Expand)AuthorAgeFilesLines
* Add lock annotations to the threading API used by hastd.Ed Schouten2014-09-011-2/+1
* Send wakeup to threads waiting on empty queue before releasing theMikolaj Golub2013-12-101-11/+5
* In remote_send_thread, if sending a request fails don't take theMikolaj Golub2013-12-101-11/+2
* Add some macros to make the code more readable (no functional chages).Mikolaj Golub2013-12-101-6/+9
* For memsync replication, hio_countdown is used not only as anMikolaj Golub2013-12-101-111/+47
* Make hastctl list command output current queue sizes.Mikolaj Golub2013-10-261-1/+52
* Merging local and remote bitmaps must be protected by hr_amp lock.Mikolaj Golub2013-10-261-1/+1
* When updating the map of dirty extents, most recently used extents areMikolaj Golub2013-09-191-8/+22
* Use cv_broadcast() instead of cv_signal() when waking up threadsMikolaj Golub2013-09-191-2/+2
* Use C11 <stdatomic.h> instead of our non-standard <machine/atomic.h>.Ed Schouten2013-04-271-6/+7
* Add i/o error counters to hastd(8) and make hastctl(8) displayMikolaj Golub2013-02-251-0/+18
* - Add support for 'memsync' mode. This is the fastest replication mode that'sPawel Jakub Dawidek2013-02-171-21/+165
* Make use of GEOM Gate direct reads feature. This allows HAST to servePawel Jakub Dawidek2012-07-041-1/+31
* Simplify the code by using snprlcat().Pawel Jakub Dawidek2012-06-031-27/+24
* If a local write request is from the synchronization thread, when itMikolaj Golub2012-02-051-1/+2
* Fix the regression introduced in r226859: if the local component isMikolaj Golub2012-02-051-1/+1
* For functions that return -1 on failure check exactly for -1 and not forPawel Jakub Dawidek2012-01-101-38/+38
* Spelling fixes for sbin/Ulrich Spörlein2012-01-071-1/+1
* fork(2) returns -1 on failure, not some random negative number.Pawel Jakub Dawidek2012-01-061-1/+1
* Implement 'async' mode for HAST.Pawel Jakub Dawidek2011-10-271-47/+78
* Minor cleanups.Pawel Jakub Dawidek2011-10-271-1/+2
* Reduce indentation.Pawel Jakub Dawidek2011-10-271-24/+24
* Improve comment so it doesn't suggest race is possible, but that we handlePawel Jakub Dawidek2011-10-271-1/+1
* Monor cleanups.Pawel Jakub Dawidek2011-10-271-6/+7
* Delay resuid generation until first connection to secondary, not until firstPawel Jakub Dawidek2011-10-271-6/+3
* Correct typo.Pawel Jakub Dawidek2011-09-281-1/+1
* If the underlying provider doesn't support BIO_FLUSH, log it only oncePawel Jakub Dawidek2011-09-281-0/+7
* After every activemap change flush disk's write cache, so that writePawel Jakub Dawidek2011-09-281-0/+19
* No need to wrap pjdlog functions around with KEEP_ERRNO() macro.Pawel Jakub Dawidek2011-09-271-2/+1
* Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT().Pawel Jakub Dawidek2011-09-271-4/+2
* Fix indentation.Mikolaj Golub2011-07-131-1/+1
* Check the returned value of activemap_write_complete() and update matadata onMikolaj Golub2011-06-281-2/+5
* In HAST we use two sockets - one for only sending the data and one forMikolaj Golub2011-06-171-0/+2
* If READ from the local node failed we send the request to the remoteMikolaj Golub2011-05-291-1/+1
* Keep statistics on number of BIO_READ, BIO_WRITE, BIO_DELETE and BIO_FLUSHPawel Jakub Dawidek2011-05-231-0/+11
* Currently we are unable to use capsicum for the primary worker process,Pawel Jakub Dawidek2011-05-141-1/+1
* When we become primary, we connect to the remote and expect it to be inPawel Jakub Dawidek2011-04-201-13/+49
* Scenario:Pawel Jakub Dawidek2011-04-191-0/+19
* Declare directions for sockets between primary and secondary.Pawel Jakub Dawidek2011-04-021-0/+5
* Handle the problem described in r220264 by using GEOM GATE queue of unlimitedPawel Jakub Dawidek2011-04-021-1/+1
* Use timeout from configuration file not only when sending and receiving,Pawel Jakub Dawidek2011-03-251-1/+1
* Use role2str() when setting process title.Pawel Jakub Dawidek2011-03-251-1/+1
* After synchronization is complete we should make primary counters beMikolaj Golub2011-03-221-3/+3
* For requests that are sent only to remote component use theMikolaj Golub2011-03-221-2/+7
* White space cleanups.Pawel Jakub Dawidek2011-03-221-3/+3
* When dropping privileges prefer capsicum over chroot+setgid+setuid.Pawel Jakub Dawidek2011-03-211-1/+1
* Initialize localcnt on first write. This fixes assertion when we createPawel Jakub Dawidek2011-03-211-2/+6
* In hast.conf we define the other node's address in 'remote' variable.Pawel Jakub Dawidek2011-03-211-11/+21
* For secondary, set 2 * HAST_KEEPALIVE seconds timeout for incomingMikolaj Golub2011-03-171-8/+4
* Make workers inherit debug level from the main process.Mikolaj Golub2011-03-111-1/+3