Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modify README

  • Loading branch information...
commit ecbe079015a1ca464449528e2fa861a373cbadd5 1 parent 774747f
@hoterran authored
Showing with 12 additions and 10 deletions.
  1. +12 −10 README.md
View
22 README.md
@@ -1,12 +1,16 @@
-#Example1
+# Example1
-show how to swap erlang code online include inner state record
+show how to upgrade erlang code online, which include inner state record change.
-first, we have gen server swap_test
-this is counter program, each call will show inner state counter, than incrment this counter.
-now, we need change code, can set random step, but gen process cant stop, so need online swap code
+first, we have a gen server swap_test.
-##step
+this is counter program, each call will show inner state counter, than incrment this counter, step is 1.
+
+now, we need change code, can setup random step, with running gen process.
+
+## step
+
+swap_test1.erl is old version code, swap_test2.erl is new version.
>os:cmd("cp swap_test1.erl swap_test.erl").
@@ -36,13 +40,11 @@ now, we need change code, can set random step, but gen process cant stop, so nee
>swap_test:test_call().
-now we set step = 3
-
+now the new step become 3 .
##code
-
-you can see this blog for [detail](http://www.hoterran.info/erlang-otp-sys-sourcecode)
+you can see this chinese blog for [detail](http://www.hoterran.info/erlang-otp-sys-sourcecode)
#Example2
Please sign in to comment.
Something went wrong with that request. Please try again.