Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(263)

Issue 3300042: code review 3300042: log: ensure writes are atomic. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by rog
Modified:
13 years, 5 months ago
Reviewers:
CC:
r, nigeltao_gnome, golang-dev
Visibility:
Public.

Description

log: ensure writes are atomic. This means that any Writer can be used safely even when Output is called concurrently. Fixes issue 1302.

Patch Set 1 #

Patch Set 2 : code review 3300042: log: ensure writes are atomic. #

Patch Set 3 : code review 3300042: log: ensure writes are atomic. #

Total comments: 6

Patch Set 4 : code review 3300042: log: ensure writes are atomic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M src/pkg/log/log.go View 1 2 3 4 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 10
rog
Hello adg (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 5 months ago (2010-11-26 08:41:26 UTC) #1
adg
r is a better choice for reviewer than I. It's his code. Andrew On 26 ...
13 years, 5 months ago (2010-11-26 10:26:42 UTC) #2
rog
Hello r (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2010-11-26 10:35:28 UTC) #3
r
See comments in issue tracker. I'd prefer not to do this.
13 years, 5 months ago (2010-11-26 17:11:38 UTC) #4
rog
i've replied there. On 26 November 2010 17:11, Rob 'Commander' Pike <r@golang.org> wrote: > See ...
13 years, 5 months ago (2010-11-26 17:38:21 UTC) #5
nigeltao_gnome
On 27 November 2010 04:11, Rob 'Commander' Pike <r@golang.org> wrote: > See comments in issue ...
13 years, 5 months ago (2010-11-26 23:22:08 UTC) #6
r
http://codereview.appspot.com/3300042/diff/7001/src/pkg/log/log.go File src/pkg/log/log.go (right): http://codereview.appspot.com/3300042/diff/7001/src/pkg/log/log.go#newcode38 src/pkg/log/log.go:38: // Logger represents an active logging object. A Logger ...
13 years, 5 months ago (2010-11-29 20:52:10 UTC) #7
rog
PTAL http://codereview.appspot.com/3300042/diff/7001/src/pkg/log/log.go File src/pkg/log/log.go (right): http://codereview.appspot.com/3300042/diff/7001/src/pkg/log/log.go#newcode38 src/pkg/log/log.go:38: // Logger represents an active logging object. On ...
13 years, 5 months ago (2010-12-01 11:33:18 UTC) #8
r
LGTM
13 years, 5 months ago (2010-12-01 18:15:12 UTC) #9
r
13 years, 5 months ago (2010-12-01 18:15:47 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=0b21e1abf118 ***

log: ensure writes are atomic.
This means that any Writer can be used safely
even when Output is called concurrently.
Fixes issue 1302.

R=r, nigeltao_gnome
CC=golang-dev
http://codereview.appspot.com/3300042

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b